<template>
  <div class="box" @click="$router.push({
    path:'/detail',
    query:{
      id:item.productId
    }
  })">
    
    <div class="topImg">
      <img class="img" :src="item.productPicture" alt="">
      <div class="describe">{{ item.productName }}</div>
    </div>

    <div class="bottomMsg">
      <div class="left">
        <div class="low">￥<span style="font-size: 0.27rem;">{{ item.productPrice }}</span></div>
        <div class="origin">￥{{ item.productPrice+item.productPriceVariance }}</div>
      </div>
      <div class="right">
        <img src="../../../assets/image/discount/lowmsg.png" alt="">
        <div class="text">直降</div>
        <div class="text1">￥<span style="font-size: 0.18rem;">{{ item.productPriceVariance }}</span></div>
      </div>
    </div>

  </div>
</template>

<script>

export default {
  props:['item'],
  data() {
    return {
      
    }
  },
  created() {
  
  },
  methods: {
   
    
  },
};
</script>

<style scoped lang="scss">
.box {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  margin-right: 10px;
  margin-bottom: 10px;
  cursor:pointer;
  .topImg{
    width: 100%;
    height: 2.24rem;
    position: relative;
    .img{
      width: 100%;
      height: 100%;
    }
    .describe{
      width: 100%;
      height: 0.34rem;
      line-height: 0.34rem;
      text-align: center;
      background: rgba(0, 0, 0, 0.6);
      font-size: 0.14rem;
      color: #FFFFFF;
      position: absolute;
      bottom: 0;
      left: 0;
    }
  }
  .bottomMsg{
    width: calc(100% - 0.42rem);
    margin: 0.12rem 0rem;
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
  .left{
    width: 0.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    .low{
      color: #F13221;
      font-size: 0.16rem;
      white-space: nowrap;
    }
    .origin{
      color: #999999;
      font-size: 0.14rem;
      text-decoration: line-through;
    }
  }
  .right{
    width: 0.94rem;
    height: 100%;
    position: relative;
    font-size: 0.13rem;
    color: #FFFFFF;
    img{
      width: 0.8141rem;
      height: auto;
      position: absolute;
      top: 0;
      right: 0;
    }
    .text{
      width: 0.8141rem;
      text-align: center;
      position: absolute;
      top: 0.06rem;
      right: 0;
    }
    .text1{
      width: 0.8141rem;
      text-align: center;
      position: absolute;
      top: 0.25rem;
      right: 0;
    }
  }
  }
}
</style>
